package chulixuan.foundation.flowControl;

/**
 * 定义一个整数，判定是偶数还是奇数
 */
public class Demo0000000002 {
    public static void main(String[] args) {
        int a = 10;

        if (a % 2 == 0) {
            System.out.println(a + "是偶数");
        } else {
            System.out.println(a + "是奇数");
        }
    }
}
